package com.jx.db137.service.imp;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jx.db137.entity.Menu;
import com.jx.db137.entity.Role;
import com.jx.db137.mapper.MenuMapper;
import com.jx.db137.mapper.RoleMapper;
import com.jx.db137.service.MenuService;
import com.jx.db137.service.RoleService;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author jx
 * @version 1.0
 * @Description
 * @date 2024/12/24 11:48
 */
@Service
public class RoleServiceImp extends ServiceImpl<RoleMapper, Role> implements RoleService {
    @Override
    public int insert(Role role) {
        return baseMapper.insert(role);
    }

    @Override
    public List<Role> selectRoleByUserId(@Param("userid")int userid) {
        return baseMapper.selectRoleByUserId(userid);
    }
}
